package com.ftg.learn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author kangjx
 * @since 2023-05-09
 */
@TableName("sys_emp")
@ApiModel(value = "Emp对象", description = "员工表")
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("员工姓名")
    private String empName;

    @TableField("dept_id")
    @ApiModelProperty("部门编号")
    private BigInteger deptId;

    @ApiModelProperty("员工性别")
    private Integer empGender;

    @ApiModelProperty("员工邮箱")
    private String empEmail;

    @ApiModelProperty("员工电话")
    private String empTel;

    @ApiModelProperty("员工状态(0代表启用,1代表禁用)")
    private Boolean empStatus;

    @ApiModelProperty("员工创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty("员工更新时间")
    private LocalDateTime gmtModified;

    public BigInteger getDeptId() {
        return deptId;
    }

    public void setDeptId(BigInteger deptId) {
        this.deptId = deptId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Integer getEmpGender() {
        return empGender;
    }

    public void setEmpGender(Integer empGender) {
        this.empGender = empGender;
    }

    public String getEmpEmail() {
        return empEmail;
    }

    public void setEmpEmail(String empEmail) {
        this.empEmail = empEmail;
    }

    public String getEmpTel() {
        return empTel;
    }

    public void setEmpTel(String empTel) {
        this.empTel = empTel;
    }

    public Boolean getEmpStatus() {
        return empStatus;
    }

    public void setEmpStatus(Boolean empStatus) {
        this.empStatus = empStatus;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Emp{" +
            "id = " + id +
            ", empName = " + empName +
            ", empGender = " + empGender +
            ", empEmail = " + empEmail +
            ", empTel = " + empTel +
            ", empStatus = " + empStatus +
            ", gmtCreate = " + gmtCreate +
            ", gmtModified = " + gmtModified +
        "}";
    }
}
